function send_sms(phone) {

    var xhr = new XMLHttpRequest();//新建一个元素对象
    xhr.onreadystatechange = function () {
        if (xhr.readyState == 4 && xhr.status == 200) {
            var result = JSON.parse(xhr.responseText)
            if (result.status == 1) {
                location.href = "/static/verify_code.html" + "?verify_phone=" + phone
            } else {
                alert(result.errorMsg);
                // location.href="/static/login.html";
            }
        }
    }
    var url = "/app_phone_verify"
    // alert(url)
    xhr.open("POST", url, true);
    xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    //这里是发起请求
    xhr.send("phone=" + phone);
}